<?php

require_once("../private/system/dycmsapi.php");

try {
	
dyInit();
uiLoadLibrary('client');
uiLoadLibrary('page');

//
// Create the page
//

$page = new cHtmlPage();

$page->AddChild($table = new cHtmlWrapper(<<<HTMLEND
<table style="height: 100%; width: 100%" border="00" cellpadding="0" cellspacing="0" cols="2">
  <tr> 
    <td width="88" class="navHead"></td>
    <td width="666" class="header">The Dynamo Kernel Project</td>
  </tr>
HTMLEND
	,
<<<HTMLEND
  <tr align="center" valign="middle"> 
    <td height="31" colspan="2" class="footer"><a href="http://sourceforge.net" target="_blank"><img src="http://sourceforge.net/sflogo.php?group_id=151015&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a> 
	  <a href="http://sourceforge.net/donate/index.php?group_id=151015"><img src="http://images.sourceforge.net/images/project-support.jpg" width="88" height="32" border="0" alt="Support This Project" /> </a>
	  <p class="small">&copy; <a href="http://www.sourceforge.net/projects/dyknl/">The Dynamo Kernel Project</a> 2005 </p></td>
  </tr>
</table>
HTMLEND
));

$table->AddChild(new cHtmlWrap(
	'<tr align="center" valign="top"><td class="subHead" colspan="2">',
	new cUiWikiRenderer(cUiWikiRenderer::$zDefaultToks,<<<END
[[Home->name=index]] - 
[[User Documentation->name=index]] - 
<a href="doc/html/">Technical Documentation</a> -
[[Downloads->name=downloads]] - 
[[Developers->name=developers]]
END
		, '<a>', array(
			'noParagraph'=>true
		))
	,'</td></tr>'));
  
$table->AddChild($main = new cHtmlWrapper(<<<HTMLEND
  <tr> 
    <td class="content" colspan="2"><table id="main"><tr>
HTMLEND
	,
<<<HTMLEND
	</tr></table></td>
  </tr>
HTMLEND
));


$main->AddChild($modules = new cHtmlWrapperTag('td', array(
	'id' => 'modules')));
$main->AddChild($content = new cHtmlWrapperTag('td', array(
	'id' => 'content')));

$page->SetContentNode($content);
$page->AddModuleContainer($modules);


$page->AddModule(new cAdminMenuModule());
$page->AddModule(new modLogin());

$page->AddHtmlHeader(<<<HTMLEND
<link rel="stylesheet" href="style.css" />
<script src="nav.js"></script>
HTMLEND
);

$page->AddMetaData('keywords', 'kernel,os');

//
// Process commands
//

processCmsCommands($page);

$page->Display();

dyEnd();

}
catch(Exception $e)
{
	$ex = new cUiException($e);
	$ex->Display();
}

?>